<template>
    <el-dialog :title="dialogTitle" :visible.sync="dialogVisible" width="500px">
        <el-descriptions :column="1" border>
            <el-descriptions-item label="发送人">
                {{ detailData.templateNickname }}
            </el-descriptions-item>
            <el-descriptions-item label="发送时间">
                {{ parseTime(detailData.createTime) }}
            </el-descriptions-item>
            <el-descriptions-item label="消息类型">
                <dict-tag :options="dict.type.system_notify_template_type" :value="detailData.templateType"/>
            </el-descriptions-item>
            <el-descriptions-item label="是否已读">
                <dict-tag :options="dict.type.infra_boolean_string" :value="detailData.readStatus"/>
            </el-descriptions-item>
            <el-descriptions-item label="阅读时间">
                {{ parseTime(detailData.readTime) }}
            </el-descriptions-item>
            <el-descriptions-item label="内容">
                {{ detailData.templateContent }}
            </el-descriptions-item>
        </el-descriptions>
    </el-dialog>
</template>

<script>
import {parseTime} from '../../../../../utils/ruoyi'

export  default {
    dicts: ['infra_boolean_string', 'system_notify_template_type'],
    data(){
        return{
            dialogTitle:'',
            dialogVisible:false,
            formLoading:false,
            detailData:{}
        }
    },
    methods:{
        parseTime,
       async open(row){
            this.dialogVisible = true
            this.dialogTitle = '详情'
           this.detailData = row
        },
    }
}


</script>

<style scoped>

</style>
